#ifndef MyResourceManager_H
#define MyResourceManager_H
#include "Math/Util.h"
#include <vector>

#define ResourceManager (CResourceManager::GetInstance())
class CResourceManager
{
public:
	static CResourceManager* GetInstance()
	{
		if(0 == mInstance)
			mInstance = new CResourceManager();
		return mInstance;
	}
	~CResourceManager();
	void LoadResource();
	CCTexture2D* GetTexture(BatchNodeTex texType);
	b2Body* GetBody(BodyType bodyType);
private:
	CResourceManager();
	static CResourceManager*					mInstance;
	std::vector<CCSpriteBatchNode*>				mBatchNode;
	std::vector<CCRect>							mBucketBodyList;
	std::vector<CCRect>							mBucketCollision;

};




#endif